﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
   public class PublicationConfiguration : EntityConfiguration<Publication>
    {
        public PublicationConfiguration()
        {
            Property(a => a.ContributionID).IsIdentity();
            MapHierarchy(
              a => new

              {
                  a.ContributionID,
              }
        ).ToTable("Publication");
        }
    }
}
